package com.xgk.boot.module.core.dal.entity.truck;

import com.baomidou.mybatisplus.annotation.*;
import com.xgk.boot.framework.mybatis.core.dataobject.BaseDO;
import com.xgk.boot.framework.mybatis.core.dataobject.BaseNoDO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;

/**
 * 订单费用明细实体
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("truck_order_fee_detail")
public class TruckOrderFeeDetailDO extends BaseDO {

    @TableId(value = "ofd_id", type = IdType.ASSIGN_ID)
    private Long ofdId;

    /** 订单编号 */
    @TableField("order_code")
    private String orderCode;

    /** 运单号 */
    @TableField("tracking_number")
    private String trackingNumber;

    @TableField("tracking_url")
    private String trackingUrl;


    @TableField("customer_code")
    private String customerCode;
    @TableField("product_code")
    private String productCode;
    @TableField("sp_code")
    private String spCode;
    @TableField("reference_no")
    private String referenceNo;


    /** 费用代码 */
    @TableField("ft_code")
    private String ftCode;

    /** 费用金额 */
    @TableField("ofd_amount")
    private BigDecimal ofdAmount;

    /** 费用备注 */
    @TableField("ofd_note")
    private String ofdNote;

    /** 操作用户ID */
    @TableField("user_id")
    private Long userId;

    /** 系统备注 */
    @TableField("ofd_sys_note")
    private String ofdSysNote;


    /** 币种代码 */
    @TableField("currency_code")
    private String currencyCode;

    /** 计算体积 */
    @TableField("calc_vol")
    private String calcVol;

    /**是否扩展账单,扩展账单可删除,
     * 0为系统账单，1未扩展账单
     * */
    @TableField("is_extend")
    private Integer isExtend=0;

    /**是否在客户费用中已扣除
     * 0为未扣除，1已扣除
     * */
    @TableField("is_deduct")
    private Integer isDeduct=0;
}